home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d2 / pcbrws_b.arc / BR2.DOC < prev    next >
Text File  |  1989-09-29  |  35KB  |  850 lines

  1.     Suggested Applications
  2.  
  3.     In this chapter you will find some uses for PC-Browse in addition to
  4.     those touched on earlier. We hope this will stimulate your own
  5.     creativity and allow you to develop unique applications of your own.
  6.  
  7.     Dictionary
  8.  
  9.     You could build just a word list, or a true dictionary with
  10.     definitions, parts of speech, hyphenation, and the like. If you sort
  11.     the dictionary alphabetically, you can search it quickly with a lookup
  12.     search. You can even trigger a lookup search of a word in the host
  13.     document with the Shf Ctl F2 hot key. Cross references between words
  14.     are easy to include. The dictionary acts like part of the application
  15.     program you are working on.
  16.  
  17.     When you type a word into a document and want to verify its meaning,
  18.     press Shf Ctl F2. The definition is displayed in the window. To paste
  19.     the information into your document, press F7. You can also pop up
  20.     PC-Browse with Shf Ctl F9, type the word into the Find text and press
  21.     F2. When you are unsure of the spelling as well as the definition,
  22.     search for just the part of the word you know, using a normal search
  23.     with wild cards instead of a fast lookup Search.
  24.  
  25.     Some examples of dictionaries that you can build:
  26.        Foreign Language dictionary
  27.        Chemical Engineering dictionary
  28.        Dictionary of Dept. of Education terminology
  29.        Dictionary of terms used in The Dune Trilogy
  30.        Accounting dictionary
  31.        Parts dictionary
  32.        Glossary
  33.  
  34.  
  35.     PC-Write Page Layout Library
  36.  
  37.     If you find that most of the word processing documents you create
  38.     follow a few given formats, you can build a library of format templates
  39.     that can be pasted into a document when you create it. Each page of the
  40.     library can be dedicated to a different page layout:  one for memos,
  41.     one for monthly reports, one for letters, and so on. You can include
  42.     standard text, such as your letterhead, as well as Guide lines and
  43.     Ruler lines.
  44.  
  45.     To use a particular template, pop up PC-Browse and search for the
  46.     corresponding page. Then use paste, F7, to insert the page layout
  47.     information directly into your document.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.                                     - 29 - 
  54.     Political Party Platform
  55.  
  56.     You can assemble position papers, speeches, and other documentation
  57.     together into a single file that outlines the candidate's (or party's)
  58.     views on the issues. The file can be used by people who are on the
  59.     phone or as a training tool for any campaign worker. It may also be an
  60.     interesting tool to send to the press.
  61.  
  62.     A user pops up PC-Browse and is presented with a list of choices or
  63.     general topics of interest. They simply highlight the topic they wish
  64.     to learn about and press Enter. PC-Browse presents the information on
  65.     that topic, or it can be broken down into subtopics. The user continues
  66.     to step through the levels, moving from general towards specific.
  67.     Information from one topic area can be cross referenced to another. For
  68.     instance, one aspect of the education reform policy may include money
  69.     for a drug education campaign. If the two topics are linked at this
  70.     point, users can read about the drug program in brief and return to the
  71.     specific information about educational reform.
  72.  
  73.     You could also use PC-Browse to do a political analysis of a city or
  74.     county. Enter information about the elected officials, corporate board
  75.     members, "Old-Boy" networks, and real estate owners and developers.
  76.     Fill in cross-references based on current and prior relationships. Find
  77.     out who's really important, and why.
  78.  
  79.  
  80.     Family Tree
  81.  
  82.     You may think your family is already overly cross-referenced
  83.     (especially during the holidays) but reading a family history can leave
  84.     you flipping a lot of pages. The hypertext links that are created with
  85.     PC-Browse make flipping "pages" much easier. You can save both
  86.     genealogical information and your family history.
  87.  
  88.     Pop up PC-Browse and type in your Find text. That could be the name of
  89.     a relative, a date, a city, or perhaps the old family home. Pressing
  90.     Enter quickly whisks you off to that place in history. If there is a
  91.     cross reference to another person or place you can highlight it with
  92.     the Tab key and press Enter to move on. As you move through the
  93.     branches of the tree, you can use the location list to quickly return
  94.     to your starting point.
  95.  
  96.     Just as family members share common experiences, they share a page
  97.     describing those experiences, because each member can have a link to
  98.     the event. So your Great Grandmother will have a link to "Winter 1894"
  99.     about surviving in the family home in South Dakota and so will each of
  100.     her siblings. Now you can leave your family's branch of the tree and
  101.     see how your Great, Great Aunts and Uncles fared after that terrible
  102.     winter.
  103.  
  104.  
  105.  
  106.                                     - 30 - 
  107.     Class Notes
  108.  
  109.     Notes taken during a lecture can be extremely useful. But often at the
  110.     end of a semester, half of them are unreadable and the other half don't
  111.     make sense. The only way to find anything is to read this scribble,
  112.     line by line, from day one. By entering your notes into the computer
  113.     every night (ok, once a week) you can clear up any inconsistencies
  114.     before you forget the entire lecture. Then you can PC-Browse through
  115.     them line by line, or search for specific words, phrases, or dates. The
  116.     search and paste features will make that term paper a snap.
  117.  
  118.     If you feel adventurous you can build search triggers to link one piece
  119.     of information with another, or perhaps link notes from another class
  120.     in another file. Your class notes can be the foundation for a
  121.     specialized dictionary or glossary useful in future courses. For some
  122.     fields such as history or anatomy, cross references can be quite
  123.     useful. "Oh, the tibia is linked to the fibula, the fibula is linked to
  124.     the patella,...."
  125.  
  126.     Your only problem comes when you try to explain to your instructor that
  127.     you can't take the test today because your dog ate your floppy disk.
  128.  
  129.  
  130.     Telemarketing Script
  131.  
  132.     A telemarketing script can be formatted as a decision tree that walks
  133.     the salesperson through the sales pitch. Again, the ability to be
  134.     resident is an advantage, since you can pop up the script on top of
  135.     another program, such as an order entry form. Since PC-Browse links the
  136.     pieces of the script quickly and quietly, the customer doesn't wait
  137.     while the salesperson pages through his or her notebook.
  138.  
  139.     The salesperson pops up PC-Browse with the Shf Ctl F10 hot key which
  140.     automatically moves to the beginning of the script. As the conversation
  141.     progresses, he or she need only use the Tab or Arrow keys and the Enter
  142.     key to move to the next part of the script. Related information such as
  143.     warranties, product descriptions, and the like can be quickly accessed
  144.     using cross references. The F4 key jumps back from the related
  145.     information to the previous place in the script.
  146.  
  147.     The customer list can also be kept in a PC-Browse file, to quickly pop
  148.     up ordering history, preferences, or any collections problems you have
  149.     had. At Quicksoft, we use PC-Browse to check for valid registration
  150.     numbers. You can also link in your price list, terms, shipping rates;
  151.     all those notes taped to the office wall. Great for networks!
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.                                     - 31 - 
  160.     On-Line Help
  161.  
  162.     PC-Browse is an outstanding tool for adding on-line help to an
  163.     application you've developed or a program you've purchased, because it
  164.     is memory resident and can pop up over any non-graphics application.
  165.     PC-Browse also uses the word at the cursor in the host document as the
  166.     Find text, which helps you create context sensitive help screens.
  167.  
  168.     When users pop up PC-Browse, they are presented with an index of help
  169.     topics. They  highlight the topic they need and press Enter to see that
  170.     information. You can design a help file with topics (target keywords)
  171.     that match the headings or other vocabulary of the application program.
  172.     Then the user can move the cursor in the application program to the
  173.     heading and then pop up PC-Browse with Shf Ctl F3 to jump right to the
  174.     topic. And topics can have cross-reference links to other topics in the
  175.     same or other files.
  176.  
  177.  
  178.     Programmer's Library
  179.  
  180.     The search and paste features of PC-Browse allow a programmer to avoid
  181.     retyping often repeated code. There are two methods used to accomplish
  182.     this.
  183.  
  184.     First, you can browse existing files for the code you want. No extra
  185.     effort is required to create an additional file. Pop up PC-Browse,
  186.     designate file or files to be searched, and enter the Find text. Paste
  187.     any lines you like back into the program you're writing.
  188.  
  189.     Second, you can create a file with only commonly used code. This
  190.     library file can be indexed and cross referenced for faster retrieval.
  191.     Shf Ctl F10 pops up an index of available routines. Highlight your
  192.     selection with the arrow keys and press Enter to find the lines of code
  193.     you need.
  194.  
  195.     Either way, F7 pastes the code directly into the host program file,
  196.     saving time and eliminating typing errors.
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.                                     - 32 - 
  213.     How to Build PC-Browse Files
  214.  
  215.     Don't let the idea of having to "build" a file keep you from making
  216.     your own PC-Browse applications. The files are easy to create. These
  217.     examples use PC-Write to make files, but you can use any text editor,
  218.     or a word processor in "non-document" mode (also called ASCII, "un-
  219.     formatted" or "DOS text" mode).
  220.  
  221.     In this section, you will build some sample files. This serves two
  222.     purposes: to teach you the basics of constructing a PC-Browse file and
  223.     to stimulate your creativity. There are many possible ways to use
  224.     PC-Browse, from the very simple to the highly complex.
  225.  
  226.  
  227.     About Delimiters
  228.  
  229.     A delimiter is a symbol that sets a keyword apart from the rest of the
  230.     text. You define your own delimiter pairs (a starting symbol before the
  231.     keyword, and an ending symbol after it) for the three kinds of
  232.     keywords. The three customization parameters are:
  233.  
  234.     *  Target keyword (parameter /I)
  235.     *  Linear search-trigger keyword (parameter /J)
  236.     *  Lookup search-trigger keyword (parameter /K)
  237.  
  238.     These delimiters are called file load parameters because they define
  239.     keywords in the file and can change with each file loaded. Targets and
  240.     triggers are covered more below.
  241.  
  242.  
  243.     Rules for Delimiters
  244.  
  245.     *  You can use almost any character as a delimiter. You can also use a
  246.        special "non-alpha" wild card, indicated by character code 8, as the
  247.        ending delimiter only. The non-alpha character matches any character
  248.        that is not a letter (a through z, A through Z) or a number (0
  249.        through 9). The effect is to define a keyword as any word
  250.        (alphanumeric string) following the starting delimiter you choose.
  251.  
  252.     *  There are six characters that you cannot use as delimiters. They are
  253.        character codes:
  254.  
  255.       0 (keyword not used)    11 (PC-Write Guide Line font) 10 (line feed)
  256.       8 (non-alpha wild card) 13 (carriage return)          12 (page break)
  257.  
  258.     *  The same character can be used as both the starting and the ending
  259.        delimiter in either kind of search-trigger keyword or in a target
  260.        keyword that is used in a linear search. However, for a target
  261.        keyword used in a lookup search, the beginning and ending delimiters
  262.        must be different.
  263.  
  264.  
  265.                                     - 33 - 
  266.     What are Targets and Triggers?
  267.  
  268.     Just remember that "to hit the target you must first pull the trigger".
  269.     The trigger keyword is composed of the text you wish to find plus the
  270.     delimiters that define the type of search. This concept, that the
  271.     delimiters define the type of search, is very important. PC-Browse
  272.     reads the delimiters to decide whether to use a lookup search or a
  273.     linear search.
  274.  
  275.     Now we can type trigger keywords with their delimiters, or place
  276.     trigger delimiters around existing text in the file. This creates a
  277.     trigger (also called a link or cross-reference) to somewhere else: the
  278.     same keyword, but surrounded by target delimiters. If you select a
  279.     trigger and press the Enter key, you get a lookup or a linear search
  280.     (depending on the delimiters) for the target. This ability to link or
  281.     cross-reference text is called hypertext.
  282.  
  283.     A target keyword is the goal of the search, the location you want to
  284.     find. In a lookup search, each target keyword must occur only once. In
  285.     a linear search, the same target keyword can occur one or more times
  286.     within the same file.
  287.  
  288.     A word of warning about the characters you define as delimiters: When
  289.     you create a file, be careful not to use the delimiter characters for
  290.     anything else. An extra trigger delimiter just gives a meaningless
  291.     cross-reference, so an occasional occurrence is okay. But suppose the
  292.     leading delimiter for a target keyword is the # symbol (code 35). If
  293.     you use the # symbol in an address (as in Suite #100), PC-Browse will
  294.     think it's a target keyword, too. If you try a lookup search in this
  295.     file, this out-of-sequence target can make the lookup search fail.
  296.  
  297.     Get in the habit of using delimiter characters that are not likely to
  298.     be used in normal situations. PC-Write font characters (codes 1 to 31,
  299.     with the above exceptions) are fine. They are also invisible, which you
  300.     may prefer in your application. You can enter them in most word
  301.     processors by holding down the Alt key and entering the code number
  302.     with the right-hand keypad. Whether or not the delimiters are visible,
  303.     they cause the keyword itself to be highlighted, unless you change this
  304.     (see: Customizing).
  305.  
  306.  
  307.     The Linear Search
  308.  
  309.     In this exercise you are the owner of a small neighborhood hardware
  310.     store. You have already created a file called SUPPLIER with information
  311.     about the companies that supply your store with merchandise. Each of
  312.     your suppliers has two pages in the file. The first page contains the
  313.     name of a contact person plus their office address and phone number.
  314.     The second page contains more detailed information about ordering
  315.     procedures. You want to create a link between the two pages, placing a
  316.  
  317.  
  318.                                     - 34 - 
  319.     trigger keyword on the address page and a target keyword on the
  320.     ordering information page.
  321.  
  322.     To Create a Link:
  323.  
  324.     1. Load the SUPPLIER file into PC-Write or your word processor.
  325.  
  326.     2. Skip to the second page. The first page is an index page. The second
  327.        page looks like:
  328.  
  329.           *Humble Beginnings Seeds*
  330.           Sandra Hansen
  331.           1616 Whatcom Dr
  332.           Bellingham, WA 98725
  333.           (206) 345-6821
  334.           comments:
  335.  
  336.        Here the "*" (code 42) is the target keyword delimiter.
  337.  
  338.     3. Move your cursor to the comments line and type:
  339.  
  340.           <HBS Order Info>
  341.  
  342.        Here the "<" (code 60) and ">" (code 62) are the linear search
  343.        keyword delimiters.
  344.  
  345.     4. Move your cursor down through SUPPLIER until you reach this entry:
  346.  
  347.           Humble Beginnings Seeds account #  N/A
  348.  
  349.           Order Policy:
  350.           phone orders  1 800 717 3483   9:00am to 5:30pm PST
  351.           no mail orders
  352.  
  353.           Delivery:
  354.           Normal UPS is standard. Blue or Red label extra.
  355.           Expect delivery time of a week or so from order date.
  356.  
  357.           Payment:
  358.           Payment due 30 days from order date. no discounts
  359.  
  360.           NOTE:   Their beginnings may be humble but the accounts
  361.                   receivable staff isn't. Get payment there no later
  362.                   than 30 days past due!!!!
  363.  
  364.           Return Policy:
  365.  
  366.     5. On the line above "Humble Beginnings Seeds account #" type the
  367.        following:
  368.  
  369.           *HBS Order Info*
  370.  
  371.                                     - 35 - 
  372.     Try setting the delimiter characters for the next supplier in the file,
  373.     JKY Electronics. Use <JKY Order Info> as the trigger and *JKY Order
  374.     Info* for the target.
  375.  
  376.     Now that the delimiter characters are in place, you must tell PC-Browse
  377.     what they are.
  378.  
  379.     To define the Delimiters:
  380.  
  381.     1. Move your cursor to the very first line of the file, past the end
  382.        of the line.
  383.  
  384.     2. Type:
  385.  
  386.           [BR=/I:42.42/J:60.62]
  387.  
  388.        Now it should look something like this:
  389.  
  390.     Index of Suppliers                       [BR=/I:42.42/J:60.62]
  391.  
  392.     <Humble Beginnings Seeds> <JKY Electronics>     <Jennings & Jennings>
  393.     <Hon Ltd. of America>     <Nordic Garden Works> <Rivers Wholesale>
  394.     <Old Mare Glue Works>
  395.  
  396.     The /I:42.42 defines the character "*" as the target delimiter on both
  397.     sides, and the /J:60.62 defines the characters "<" and ">" as the
  398.     linear search keyword delimiters.
  399.  
  400.     4. Save the SUPPLIER file.
  401.  
  402.     We placed [BR=....] in the middle of the screen where it is visible in
  403.     the PC-Browse window. If you would prefer not to see it, move the
  404.     entire string out to the right beyond column 80. The parameters will
  405.     take effect, but be out of the visible range of the window.
  406.  
  407.     Now let's follow a link in the SUPPLIER file.
  408.  
  409.     To Follow a link:
  410.  
  411.     1. Pop up PC-Browse with Shf Ctl F1.
  412.  
  413.     2. Press F6. PC-Browse asks for the name of the file to load. Type:
  414.  
  415.           SUPPLIER   <enter>
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.                                     - 36 - 
  425.     3. Press the Ctl PgDn key to go to the second page:
  426.  
  427.           *Humble Beginnings Seeds*
  428.           Sandra Hansen
  429.           1616 Whatcom Dr
  430.           Bellingham, WA 98725
  431.           (206) 345-6821
  432.           comments: <HBS Order Info>
  433.  
  434.     4. Press Tab to highlight <HBS Order Info>, and then press Enter (or
  435.        Grey+).  When PC-Browse reads the < and >, it knows to strip them
  436.        off, add * and *, and do a search for *HBS Order Info*.
  437.  
  438.  
  439.     The Lookup Search
  440.  
  441.     A lookup is an extremely fast search of records that are sorted in
  442.     alphabetic or numerical order. It is especially useful for very large
  443.     files created with a database. For example, you can create an on-line
  444.     catalog, or a list of your customer's addresses and phone numbers.
  445.     Since PC-Browse is RAM-resident, you don't have to exit your word
  446.     processor to lookup your information. And with the PC-Browse paste
  447.     feature, you can insert that information right into the file you are
  448.     working on.
  449.  
  450.     Requirements for a Lookup File
  451.  
  452.     A lookup search only works on a file that meets these conditions:
  453.  
  454.     1. Exactly one target keyword must be defined per page. Every page must
  455.        have a target keyword, and no page can have two of them.
  456.  
  457.     2. Every page must fit into the PC-Browse text buffer (memory that
  458.        holds text from the disk). By default, the buffer is 4096 bytes, but
  459.        you can change this (see Customizing).
  460.  
  461.     3. The pages in the file must be sorted by their target keyword. This
  462.        sort order starts with the numbers 0 through 9, then the letters A
  463.        through Z. The sort does not differentiate between upper and lower
  464.        case letters.
  465.  
  466.     4. If the target keywords are numbers, they all must be the same length
  467.        (with leading zeros if necessary) to lookup correctly. For instance,
  468.        this:
  469.  
  470.           8  zebra  3485  help  0912  AppLE  67  HELLO
  471.  
  472.        sorts into the following order:
  473.  
  474.           0912  3485  67  8  AppLE  HELLO  help  zebra
  475.  
  476.  
  477.                                     - 37 - 
  478.     In this example, we'll make a PC-Browse file listing parts for a
  479.     hardware store. To make things easy, it contains only 15 items. These
  480.     items are sorted by part number, the target keyword in this example.
  481.     Each page will have a part number, brief description of the item,
  482.     retail price, name of the manufacturer, and an area for additional
  483.     comments.
  484.  
  485.     We'll use the PC-Write merge procedure to create the file, and the DOS
  486.     sort command to put the items in order. If you are using another text
  487.     editor to do this, or a database program to sort and produce the file,
  488.     the discussion here should help you adapt to these other programs. In
  489.     fact, a database program is recommended for organizing, sorting, and
  490.     preparing data for the PC-Write merge function, or directly for the
  491.     PC-Browse file.
  492.  
  493.     Entering and Sorting the Data
  494.  
  495.     If you prefer not to type the entries in this example, you will find a
  496.     copy of the sorted file, ready to be merged, in a file called PARTSRT.
  497.     If you wish to use the PARTSRT file, copy it to your word processor's
  498.     work diskette or directory. If you are using the PARTSRT file you can
  499.     skip over this section and move directly to the next section, Merging
  500.     the Data.
  501.  
  502.     To enter and sort the data:
  503.  
  504.     1. Create a file called PARTLST using PC-Write or your word processor.
  505.  
  506.        If you are using another text editor, create an ASCII (non-document)
  507.        file.
  508.  
  509.     2. Type the following into the file PARTLST, starting in column number
  510.        one. The information is shown in unsorted comma-separated form, a
  511.        standard merge format.
  512.  
  513.           7055,2 hp lawn mower,South Lawn & Garden,$145.00
  514.           6002,Swiss Army Knife,Hon Ltd. of America,$5.95
  515.           7004,seeds - bush beans,Humble Beginnings Seeds,$0.30
  516.           6010,No. 1 phillips screwdriver,Rivers Wholesale,$2.00
  517.           8065,toaster oven,JKY Electronics,$45.00
  518.           6035,carpenters glue - 12 oz bottle,Old Mare Glue Works,$2.80
  519.           6047,tape measure - 25 foot,Rivers Wholesale,$15.50
  520.           8045,light bulb - 25 watt,Benson Lighting,$1.00
  521.           6051,combination square with level,Rivers Wholesale,$7.85
  522.           7023,legume inoculant,Humble Beginnings Seeds,$1.00
  523.           6098,16 piece socket set - metric,Hon Ltd. of America,$4.00
  524.           6022,spray lubricant - 6 oz aerosol,Hon Ltd. of America,$2.95
  525.           7018,garden rake - 6 foot handle,Nordic Garden Works,$10.00
  526.           6001,No. 2 phillips screwdriver,Rivers Wholesale,$2.95
  527.           8002,multi-outlet power strip,Jennings & Jennings,$6.95
  528.  
  529.  
  530.                                     - 38 - 
  531.        Each line is equivalent to a record in a database program. The
  532.        commas separate the fields of information. The arrangement is:
  533.  
  534.           number,description,manufacturer,price
  535.  
  536.     3. Save the file and exit to the DOS prompt.
  537.  
  538.     4. To sort the contents of PARTLST and send the output to a file called
  539.        PARTSRT, type:
  540.  
  541.           SORT <PARTLST >PARTSRT
  542.  
  543.        The DOS redirection operators < and > tell DOS to sort the contents
  544.        of the file PARTLST and send the sorted data to a file called
  545.        PARTSRT. You may need to copy the file SORT.EXE from your DOS
  546.        diskette first.
  547.  
  548.     5. Look at the file PARTSRT with your word processor or the DOS TYPE
  549.        command. If the file is correct it will look like this:
  550.  
  551.           6001,No. 2 phillips screwdriver,Rivers Wholesale,$2.95
  552.           6002,Swiss Army Knife,Hon Ltd. of America,$5.95
  553.           6010,No. 1 phillips screwdriver,Rivers Wholesale,$2.00
  554.           6022,spray lubricant - 6 oz aerosol,Hon Ltd. of America,$2.95
  555.           6035,carpenters glue - 12 oz bottle,Old Mare Glue Works,$2.80
  556.           6047,tape measure - 25 foot,Rivers Wholesale,$15.50
  557.           6051,combination square with level,Rivers Wholesale,$7.85
  558.           6098,16 piece socket set - metric,Hon Ltd. of America,$4.00
  559.           7004,seeds - bush beans,Humble Beginnings Seeds,$0.30
  560.           7018,garden rake - 6 foot handle,Nordic Garden Works,$10.00
  561.           7023,legume inoculant,Humble Beginnings Seeds,$1.00
  562.           7055,2 hp lawn mower,South Lawn & Garden,$145.00
  563.           8002,multi-outlet power strip,Jennings & Jennings,$6.95
  564.           8045,light bulb - 25 watt,Benson Lighting,$1.00
  565.           8065,toaster oven,JKY Electronics,$45.00
  566.  
  567.     Remarks
  568.     If you are using a database program, create the file and a data entry
  569.     screen to input the data. Enter all the data as shown. Next, sort the
  570.     information in the part number column in ascending order. Send the
  571.     output of the sort to a file called PARTSRT using standard comma
  572.     separated merge format.
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.                                     - 39 - 
  584.     Merging the Data
  585.  
  586.     If you use PC-Write, load the merge template file PARTTEM. For a
  587.     database or another merge program, use this file to understand the
  588.     general format. PARTTEM looks like this:
  589.  
  590.           {part,}
  591.           {description,}
  592.           {manufacturer,}
  593.           {price,}
  594.           {}
  595.           *{part}
  596.           {description}
  597.  
  598.           {price}
  599.           <{manufacturer}>[SUPPLIER]
  600.           Comments:
  601.  
  602.     The line directly following "Comments" contains a hard page break,
  603.     codes 12 and 15. The page break at the end divides each merge entry
  604.     into separate pages. Make sure at least the form feed (code 12)
  605.     separates each page. The code 15 after it is optional.
  606.  
  607.     The braces define the merge variables in PC-Write format, except for {}
  608.     which separates the input template from the output template. The first
  609.     four lines define the input file, and the final seven lines define the
  610.     output file. The leading asterisk in *{part} is the starting target
  611.     keyword delimiter, which you'll define later with  /I:42.8.
  612.  
  613.     Similarly, <{manufacturer}> is a linear search-trigger keyword. The
  614.     [SUPPLIER] after it is a cross-reference to a file called SUPPLIER.
  615.  
  616.     To merge the comma-separated information into new file:
  617.  
  618.     1. Load the template file PARTTEM. (We assume you are using PC-Write.)
  619.  
  620.     2. Press the Shf F3 key. The PC-Write Merge Menu appears across the top
  621.        of the screen.
  622.  
  623.     3. Press F9 and type the name of the input file, PARTSRT. Don't press
  624.        Enter yet.
  625.  
  626.     4. Press F10, type the name of the output file, PARTS, and press Enter.
  627.  
  628.     5. To merge all of the records automatically, press F10.
  629.  
  630.     Remarks
  631.     If you have a problem with the PC-Write merge, check to make sure the
  632.     information in PARTSRT is correct. Check for extra or missing commas,
  633.     particularly in an address. If a comma is used that does not separate
  634.     fields, surround the field with quote marks ("). Check your PC-Write
  635.     manual for further details.
  636.                                     - 40 - 
  637.     Defining the Parameters
  638.  
  639.     The last step in building a lookup file is to define the keyword
  640.     delimiters.
  641.  
  642.     To define the delimiters:
  643.  
  644.     1. Load the PARTS file into PC-Write or your word processor.
  645.  
  646.     2. Move to the top line in the file, anywhere after the part number.
  647.  
  648.     3. Type the following:
  649.  
  650.           [BR=/I:42.8/J:60.62/K:40.41]
  651.  
  652.        Here /I:, /J: and /K: define the target, linear search, and lookup
  653.        search keyword delimiters respectively. The target keyword is
  654.        delimited by a leading "*", the linear trigger is delimited by "<"
  655.        and ">", and the lookup trigger is delimited by "(" and ")".
  656.  
  657.     Using the File
  658.  
  659.     Now let's pop up PC-Browse, load your PARTS file, and try searching
  660.     for some items.
  661.  
  662.     To Do a Lookup Search:
  663.  
  664.     1. From DOS, PC-Write, or another application, press Shf Ctl F1.
  665.  
  666.     2. Press F6. PC-Browse asks you for the name of the file to load. Type:
  667.  
  668.           PARTS  <Enter>
  669.  
  670.        If the file PARTS is not in the current directory (or the PCBROWSE=
  671.        or PATH= directories) you will need to supply a path name so
  672.        PC-Browse can find the file.
  673.  
  674.     3. Press F9, type 7004, and press F2 (not Enter).  The F2 key places
  675.        the lookup delimiters around the part number and starts a lookup
  676.        search. You get:
  677.  
  678.     +File:PARTS-------------------------Find:#7004 -----------------------+
  679.     |                                                                     |
  680.     |*7004                                                                |
  681.     |seeds - bush beans                                                   |
  682.     |                                                                     |
  683.     |$0.30                                                                |
  684.     |<Humble Beginnings Seeds>[supplier]                                  |
  685.     |comments:                                                            |
  686.     |                                                                     |
  687.     |                                                                     |
  688.     +Esc:Exit F1:Help F4:Backtrack F6:File F7:Paste F9:Find F10:First-page+
  689.                                     - 41 - 
  690.     Try a lookup for the following numbers:
  691.        6022
  692.        8002
  693.        7023
  694.        8065
  695.  
  696.     Let's suppose that the owner of a store would like to sell more of the
  697.     multi-outlet power strips, part number 8002. We think the toaster oven
  698.     is an obvious candidate for a power strip. Let's add a lookup
  699.     cross-reference to the comment line.
  700.  
  701.     To place a Lookup trigger into a file:
  702.  
  703.     1. Call up the PARTS file in your word processor and find the toaster
  704.        oven page.
  705.  
  706.     2. Move to the comments section and type:
  707.  
  708.           Don't forget the power strip (8002)
  709.  
  710.        where "(" and ")" are the lookup trigger keyword delimiters, defined
  711.        with /K:40.41 in [BR=/I:42.8/J:60.62/K:40.41].
  712.  
  713.     Now you can jump directly from the toaster oven page to the power strip
  714.     page. Just tab to the (8002) and press Enter.
  715.  
  716.     +File:PARTS------------------------Find:#8065 ------------------------+
  717.     |                                                                     |
  718.     |*8065                                                                |
  719.     |toaster oven                                                         |
  720.     |                                                                     |
  721.     |$45.00                                                               |
  722.     |<JKY Electronics>[supplier]                                          |
  723.     |comments: Don't forget the power strip (8002)                        |
  724.     |                                                                     |
  725.     |                                                                     |
  726.     +Esc:Exit F1:Help F4:Backtrack F6:File F7:Paste F9:Find F10:First-page+
  727.  
  728.     Remarks
  729.     A lookup search is much faster than a linear search, which just scans
  730.     the whole file. It works like this:
  731.  
  732.     1. Compare the lookup keyword wanted with the current page's target
  733.        keyword.
  734.     2. If they are the same, we're done.
  735.     3. If they aren't the same, restrict the search to the part below or
  736.        above the current page as appropriate, and try again from the middle
  737.        of what's left.
  738.  
  739.  
  740.  
  741.  
  742.                                     - 42 - 
  743.     Links Between Files
  744.  
  745.     From each part number page, there's a link to the source in the
  746.     SUPPLIER file.
  747.  
  748.     To link to another file:
  749.  
  750.     1. From PC-Browse, using the PARTS file, find part 6002.  It's the
  751.        Swiss Army Knife.
  752.  
  753.     2. Press the Tab key to select the manufacturer, <Hon Ltd. of America.>
  754.  
  755.     3. Press Grey+ (or Enter). You see the SUPPLIER page for Hon Ltd. of
  756.        America.
  757.  
  758.     4. Press F4 to return to the PARTS file.
  759.  
  760.     Your PARTS file has one supplier for each part. Suppose you discover an
  761.     alternate supplier; for example, Rivers Wholesale also sells Swiss Army
  762.     Knives. Unlike using a fixed-format database, adding a second supplier
  763.     as an inter-file link is easy to do.
  764.  
  765.     To make a link between files:
  766.  
  767.     1. Call up the PARTS file in your word processor and find the Swiss
  768.        Army Knife page.
  769.  
  770.     2. Add the following line under Hon Ltd. of America:
  771.  
  772.           <Rivers Wholesale> [SUPPLIER]
  773.  
  774.     That's it. From PC-Browse, you can select <Rivers Wholesale>, and jump
  775.     to its page in the SUPPLIER file.
  776.  
  777.     Remarks
  778.     Even if two files are linked with a keyword search, the various keyword
  779.     delimiters could be different in each file. In this case the SUPPLIER
  780.     file and the PARTS file use the same keyword delimiters.
  781.  
  782.     Following a link can do more than just switch to another text file. It
  783.     can also run another program. For example, following a link with the
  784.     keyword ORDER could start running your accounting package to enter a
  785.     purchase order. See the Reference Section for details.
  786.  
  787.  
  788.     Creating an Index Page
  789.  
  790.     By placing a trigger for each target on the first page of a file, you
  791.     create an index page. This gives you (or an end user) a way to quickly
  792.     jump to any page, without typing.
  793.  
  794.  
  795.                                     - 43 - 
  796.     To create an index page:
  797.  
  798.     1. Edit the file SUPPLIER. Go to the first page.
  799.  
  800.        The first page looks like this:
  801.  
  802.       Index of Suppliers                        [BR=/I:42.42/J:60.62]
  803.  
  804.       <Humble Beginnings Seeds> <JKY Electronics>     <Jennings & Jennings>
  805.       <Hon Ltd. of America>     <Nordic Garden Works> <Rivers Wholesale>
  806.       <Benson Lighting>
  807.  
  808.     Several keyword triggers are in place. However, there are two left for
  809.     you to enter.
  810.  
  811.     2. Under <Nordic Garden Works>, type:  <Old Mare Glue Works>
  812.  
  813.     3. Under <Rivers Wholesale>, type:  <South Lawn & Garden>
  814.  
  815.     Using the Index Page
  816.  
  817.     In a keyword search, typing a close but incorrect name like "Benson
  818.     Lights" will not match the target keyword. With the index page, you can
  819.     select the name from the list.
  820.  
  821.     To use the index page:
  822.  
  823.     1. Press Shf Ctl F10. PC-Browse pops up and moves to the first page in
  824.        the file.
  825.  
  826.     2. Use the Tab or Arrow keys to highlight one of the triggers. Try "Hon
  827.        Ltd. of America".
  828.  
  829.     3. Press Grey+. PC-Browse reads the delimiters surrounding the text and
  830.        does a Linear search for *Hon Ltd. of America*.
  831.  
  832.     This gives us four different ways to find our suppliers:
  833.  
  834.     1. Link from the part number.
  835.     2. Link from the index.
  836.     3. Pop-up PC-Browse with Shf Ctl F9, enter the name at the F9 prompt
  837.        and press F3.
  838.     4. Pop-up PC-Browse with Shf Ctl F3 with the name at the original
  839.        program cursor.
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.                                     - 44 - 
  849.  
  850.